package com.jdls.day12.test;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * @author 嘉德罗斯
 * @date 2021/8/2
 */
public class test1 {
    public static void main(String[] args) throws IOException {
        FileInputStream fo = new FileInputStream("jdls-class\\a.txt");
        while (true){
            int a = fo.read();
            if(a == -1){
                break;
            }else {
                System.out.println((char)a);
            }
        }
        fo.close();
    }
}
